* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-controls .btn {
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-controls .btn-primary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.header-controls .btn-primary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.header-controls .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.header-controls .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}



.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.container {
    display: flex;
    height: calc(100vh - 88px);
}

.editor-panel {
    width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.editor-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    min-height: 56px;
}

.editor-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

.editor-controls .btn {
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
}

/* 统一编辑器控制按钮样式 */
.editor-controls .btn-primary,
.editor-controls .btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid transparent;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.editor-controls .btn-primary:hover,
.editor-controls .btn-secondary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.editor-controls .btn-primary:active,
.editor-controls .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.editor-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#json-input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 16px 16px 16px 50px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
    color: #2c3e50;
    transition: all 0.3s ease;
}

#json-input:focus {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.2);
}

.line-numbers {
    position: absolute;
    top: 16px;
    left: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #bdc3c7;
    text-align: right;
    width: 35px;
    user-select: none;
    pointer-events: none;
    white-space: pre;
}

.resizer {
    width: 4px;
    cursor: col-resize;
    background: #e0e0e0;
    position: relative;
    transition: background-color 0.2s;
}

.resizer:hover {
    background: #667eea;
}

.preview-panel {
    width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    min-height: 56px;
}

.view-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.tab-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-content {
    flex: 1;
    overflow: auto;
    background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
    padding: 16px;
    position: relative;
}

.preview-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    opacity: 0.6;
}

.placeholder {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
    margin: 40px;
    transition: all 0.3s ease;
}

.placeholder:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.7);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}



/* JSON语法高亮 */
.json-key {
    color: #d73a49;
    font-weight: 600;
}

.json-string {
    color: #032f62;
}

.json-number {
    color: #005cc5;
}

.json-boolean {
    color: #e36209;
    font-weight: 600;
}

.json-null {
    color: #6f42c1;
    font-weight: 600;
}

.json-punctuation {
    color: #24292e;
}

/* 树形视图样式 */
.json-tree {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.tree-node {
    margin-left: 20px;
    border-left: 1px solid #e0e0e0;
    padding-left: 12px;
}

.tree-item {
    display: flex;
    align-items: center;
    padding: 2px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tree-item:hover {
    background: #f8f9fa;
}

.tree-toggle {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #7f8c8d;
}

.tree-key {
    color: #d73a49;
    font-weight: 600;
    margin-right: 8px;
}

.tree-value {
    flex: 1;
}

.tree-content {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.tree-type {
    font-size: 10px;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.tree-collapsed .tree-children {
    display: none;
}

/* 表格视图样式 */
.json-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.json-table th,
.json-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.json-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.json-table tr:hover {
    background: #f8f9fa;
}

/* Excel 预览样式 */
.excel-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

.excel-header {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.excel-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.excel-info h3::before {
    content: "📊";
    font-size: 20px;
}

.excel-stats {
    font-size: 14px;
    opacity: 0.9;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.excel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.excel-actions .btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.excel-actions .btn-primary {
    background: rgba(255,255,255,0.9);
    color: #1e7e34;
    border: 1px solid rgba(255,255,255,0.2);
}

.excel-actions .btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.excel-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.excel-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.excel-table-container {
    max-height: 400px;
    overflow: auto;
    border-top: 1px solid #e0e0e0;
}

.excel-table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.excel-table th {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #1e7e34;
    font-weight: 600;
    color: #1e7e34;
}

.excel-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.excel-table tbody tr:hover {
    background: #e8f5e8;
}

.excel-table td {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.excel-table td:hover {
    background: #d4edda;
    position: relative;
    z-index: 5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .excel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .excel-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .excel-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* YAML 视图样式 */
.yaml-content {
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    margin: 0;
    border: none;
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    box-sizing: border-box;
    border-radius: 8px;
}

.status-bar {
    background: #2c3e50;
    color: white;
    padding: 4px 16px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    line-height: 1.2;
}

.status-bar span {
    white-space: nowrap;
}

.status-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.status-info span {
    color: #ecf0f1;
}



/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    color: #bdc3c7;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #2c3e50;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.modal-body input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.modal-body input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}



.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.error-details {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    color: #dc2626;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 历史记录列表样式 */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.history-info {
    flex: 1;
    margin-right: 12px;
}

.history-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 14px;
}

.history-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #7f8c8d;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load {
    background: #667eea;
    color: white;
}

.btn-load:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.empty-history {
    text-align: center;
    color: #7f8c8d;
    padding: 40px;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .editor-panel,
    .preview-panel {
        width: 100%;
        height: 50%;
    }
    
    .resizer {
        width: 100%;
        height: 4px;
        cursor: row-resize;
    }
    
    .editor-controls {
        gap: 4px;
        justify-content: center;
    }
    
    .editor-controls .btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .status-info {
        gap: 8px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .header-controls .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .history-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .history-info {
        margin-right: 0;
    }
    
    .history-actions {
        align-self: flex-end;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #7f8c8d;
    font-size: 16px;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 智能修复模态框全屏样式 */
#repair-modal {
    background-color: rgba(0,0,0,0.8);
}

#repair-modal .modal-content {
    width: 95%;
    height: 90%;
    max-width: none;
    max-height: none;
    margin: 2.5% auto;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

#repair-modal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#repair-modal .repair-diff {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    min-height: 0;
}

/* 当修复信息隐藏时，差异对比区域占满空间 */
#repair-modal .modal-body:has(.repair-info:empty) .repair-diff {
    margin-top: 0;
}

#repair-modal .diff-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#repair-modal .diff-section pre {
    flex: 1;
    max-height: none;
    overflow-y: auto;
}

/* 智能修复模态框样式 */
.repair-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 0;
}

/* 当修复信息为空时隐藏区域 */
.repair-info:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.repair-info.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.repair-info.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.repair-info.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.repair-diff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.diff-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.diff-section h4 {
    background: #e9ecef;
    padding: 10px 15px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.diff-section pre {
    margin: 0;
    padding: 15px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 差异对比样式 */
.diff-highlight {
    position: relative;
    background: #fff3cd;
    border-radius: 2px;
    padding: 1px 2px;
    margin: 0 1px;
    transition: all 0.2s ease;
}

.diff-highlight:hover {
    background: #ffeaa7;
    transform: scale(1.02);
}

.diff-highlight.added {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.diff-highlight.removed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    text-decoration: line-through;
}

.diff-highlight.changed {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.diff-highlight.quote-fixed {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.diff-highlight.comma-fixed {
    background: #f3e5f5;
    color: #4a148c;
    border: 1px solid #e1bee7;
}

.diff-highlight.comment-removed {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    font-style: italic;
}

/* 修复对比中的行号样式 */
.line-number {
    display: inline-block;
    width: 40px;
    color: #6c757d;
    font-weight: bold;
    font-size: 11px;
    text-align: right;
    margin-right: 10px;
    user-select: none;
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    border-right: 2px solid #dee2e6;
}

/* 修改过的行号样式 */
.line-number-changed {
    color: #dc3545;
    background: #f8d7da;
    border-right: 2px solid #dc3545;
    font-weight: 700;
}

/* 差异统计 */
.diff-stats {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diff-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.diff-stat-badge {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.diff-stat-badge.added {
    background: #28a745;
}

.diff-stat-badge.removed {
    background: #dc3545;
}

.diff-stat-badge.changed {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* 修复按钮样式 */
.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-buttons .btn {
    min-width: 80px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 智能修复模态框移动端全屏 */
    #repair-modal .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    #repair-modal .modal-header {
        padding: 15px;
    }
    
    #repair-modal .modal-body {
        padding: 15px;
    }
    
    .repair-diff {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .diff-section pre {
        font-size: 11px;
        max-height: 200px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
    
    .diff-stats {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
} 